#ifndef CSTOPWATCH_H
#define CSTOPWATCH_H

//#include <sys/time.h>
#include <time.h>

#include "DLLDesc.h"

namespace Polaris_CommonLib {


class _DLL_DESC_ CStopWatch
{
    public:
        CStopWatch();
        CStopWatch(clockid_t a_ClockID);
        virtual ~CStopWatch();

        void Start();
        void Stop();
        int TotalMs();
    protected:
        timespec m_TSStart;
        timespec m_TSStop;

        clockid_t m_ClockID;
    private:
};

} // End namespace

#endif // CSTOPWATCH_H
